package dao;

import model.ExpressCompany;
import model.User;

import java.util.List;

public interface ExpressCompanyManagement {
    //增加
    Integer saveOne(ExpressCompany expressCompany);

    //修改一条记录
    boolean updateOne(ExpressCompany expressCompany, ExpressCompany desti);

    //解约一家快递公司，返回解约快递员人数
    int deleteOneFast(ExpressCompany expressCompany, UsrTypeManager typeManager);
    //解约一家快递公司，返回解约快递员名单
    List<User> deleteOneReturnSenders(ExpressCompany expressCompany, UsrTypeManager typeManager);

    List<ExpressCompany> query(ExpressCompany com, int pageSize, int page);

    //根据id查询记录
    List<ExpressCompany> query(ExpressCompany com);

    List<ExpressCompany> query(int pageSize, int page);

    List<ExpressCompany> query();
    //查询全部
    List<ExpressCompany> queryALL();

    List<ExpressCompany> queryALL(int pageSize, int page);
}
